What will be the output of the following Python code? import turtle t=turtle.Pen() for i in range(0,4): t.forward(100) t.left(90) t.penup() t.left(90) t.forward(200) for i in range(0,4): t.forward(100) t.left(90)
1. Error
2. 1 square
3. 2 squares, at a separation of100 units, joined by a straight line
4.2 squares, at a separation of 100 units, without a line joining them
Posted Date:-2022-01-02 09:38:10